﻿using System;
using System.Linq;
using System.Web.Mvc;
using IFDB.ResourceLibrary;
using IFDB.ViewModels.PageViewModels;
using IFDB.ViewModels.PartialViewModels;

namespace IFDB.MVC.Controllers
{
    public class TeamController : Controller
    {
        public ActionResult Index(Guid teamId, Guid? seasonId)
        {
            TeamViewModel teamViewModel = new TeamViewModel(teamId, seasonId);
            return View(teamViewModel);
        }

        public ActionResult _MatchList(Guid teamId, Guid? seasonId)
        {
            TeamViewModel teamViewModel = new TeamViewModel(teamId, seasonId);
            return PartialView("~/Views/Shared/Match/_TeamMatchList.cshtml", teamViewModel.TeamMatchListViewModel);
        }

        public ActionResult _PersonList(TeamViewModel teamViewModel)
        {
            return PartialView(teamViewModel);
        }
    }
}
